Repository navigation
fix(render): match Mesa powervr_mesa_icd Vulkan manifest prefix - #2631
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Match Mesa's
powervr_mesa_icdVulkan ICD manifest prefix alongsidepowervr_icdfor the LinuxpowervrDRM kernel driver.Addresses #700 (follow-on report from @purian23).
Root Cause
crates/rune/src/render/vulkan_icd.rsmapped"powervr"solely to["powervr_icd"], whereas Mesa'ssrc/imagination/vulkan/meson.buildinstallspowervr_mesa_icd.<arch>.json. Becausemanifest_matches_prefixesusesstarts_with, no candidate library was found on PowerVR systems and Rune fell back to loading every installed Vulkan ICD.Audit of Other Mesa ICD Prefixes
Verified all remaining entries in
icd_prefixesagainst upstream Mesasrc/*/vulkan/meson.build:intel_icd,intel_hasvk_icd(intel/vulkan,intel/vulkan_hasvk) — matchesradeon_icd(amd/vulkan) — matches (alongsideamd_icd,amd_pro_icd)nouveau_icd(nouveau/vulkan) — matchesfreedreno_icd(freedreno/vulkan) — matchespanfrost_icd(panfrost/vulkan) — matchesbroadcom_icd(broadcom/vulkan) — matchesasahi_icd(asahi/vulkan) — matchesvirtio_icd(virtio/vulkan) — matchespowervr_mesa_icd(imagination/vulkan) — fixed here (keepingpowervr_icdalongside it)Verification
scan_discovers_powervr_mesa_and_generic_icd_manifestsand updatedkernel_driver_table_maps_known_drivers_and_rejects_unknownincrates/rune/src/render/vulkan_icd_tests.rs; verified both fail before the fix and pass after.cargo test -p rune --lib vulkan_icd(14 passed, 0 failed) andcargo check -p rune --lib.